#include "FindWindow.h"
#include "WindowManager.h"

#include "ui_FindWindow.h"

FindWindow::FindWindow(QWidget *parent) :
    BaseWindow(parent),
    ui(new Ui::FindWindow)
{
    ui->setupUi(this);
    connect(ui->Find,SIGNAL(clicked()),this,SLOT(OnFindClick()));
}
void FindWindow::OnFindClick()
{
    QString text=ui->lineEdit->text();
    Satory::GetInstance()->MakeDream(text)->AskAuth();
    WindowManager::GetInstance()->CloseWindow(WindowManager::FINDWINDOW);

}

FindWindow::~FindWindow()
{
    delete ui;
}
